<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

Class Dashboard_model extends CI_Model{
	
	function get_products(){
		
		$query=$this->db->select('*')->from('products')->limit(20)->order_by('product_id','desc')->get();
		return $query;
	}
	
	function get_categories(){
		
		$query=$this->db->select('*')->from('categories')->limit(20)->order_by('category_id','desc')->get();
		return $query;
		
	}
	
}
?>